object TestFunc {
  def main(args: Array[String]): Unit = {
    sayHello()
    val k = 15
    val r = jiec(k)
    println(r)
  }

  def jiec(a: Int): Long = {
    var j: Long = 1
    for (i <- 1 to a)
      j *= i
    j //return j
  }

  //函数
  def sayHello(): Unit = {
    println("大扎好，我司渣渣灰")
  }

  def jc(n: Int): Long = {
    if (n <= 1) 1 else n * jc(n - 1)
  }
}
